package cn.xmkeshe.back.impl;

import cn.xmkeshe.back.ICommentServiceBack;
import cn.xmkeshe.dao.ICommentDao;
import cn.xmkeshe.model.Comment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ICommentServiceBackImpl implements ICommentServiceBack {

  @Resource
  private ICommentDao iCommentDao;

  @Override
  public boolean comment(Comment comment) {
    return iCommentDao.comment(comment);
  }

  @Override
  public List<Comment> findAllStaff() {
    return iCommentDao.findAllStaff();
  }

  @Override
  public List<Comment> findAll() {
    return iCommentDao.findAll();
  }
}
